package sy.test;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

import net.sf.jxls.exception.ParsePropertyException;
import net.sf.jxls.transformer.XLSTransformer;

import org.apache.poi.openxml4j.exceptions.InvalidFormatException;

import sy.db.mysql.model.YwCjgcysfyb;


public class ExportExcelUtil {
	 public static void main(String[] args) throws ParsePropertyException, InvalidFormatException, IOException {   
		 	String srcFilePath = "C:\\Users\\Administrator\\Desktop\\ysmb.xls";
			String destFilePath = "D:\\软件\\apache-tomcat-7.0.53\\webapps\\ttpro\\template\\template-ysmb.xls";
			YwCjgcysfyb cy = new YwCjgcysfyb ();
			Map beanParams = new HashMap();
			beanParams .put("entty", cy);
			XLSTransformer former = new XLSTransformer();
			former.transformXLS(destFilePath , beanParams, srcFilePath);
			System.out.println("the end !!!");
     }   
 }  
